package com.wang.bootdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/test" )
    @ResponseBody
    public String test(){
        return "Wang Chi";
    }

    @GetMapping("/login")
    public String login(){
        return "login";
    }
    @GetMapping("/home")
    public  String home(){
        return "home";
    }
}
